/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.workflowDesign.bean;

import com.koron.workflow.common.bean.BaseBean;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

public class ProcessUpdateBean extends BaseBean {
    // 应用ID
    @NotNull(message = "应用ID不能为空")
    @Size(max = 50, message = "应用ID最多能输入50个字符")
    private String appId;
    // 所属模板组ID
    @NotNull(message = "所属模板组ID不能为空")
    @Size(max = 50, message = "所属模板组ID最多能输入50个字符")
    private String setId;
    // 模板编号
    @NotNull(message = "模板编号不能为空")
    @Size(max = 50, message = "模板编号最多能输入50个字符")
    private String code;
    // 模板名称
    @NotNull(message = "模板名称不能为空")
    @Size(max = 50, message = "模板名称最多能输入50个字符")
    private String name;
    // 版本号
    @Null
    private Integer version;
    // 工作流描述
    @NotNull(message = "工作流描述不能为空")
    @Size(max = 255, message = "工作流描述最多能输入255个字符")
    private String description;
    // bpmn文件id
    @Null
    private String bpmnContent;
    // svg文件id
    @Null
    private String svgContent;
    // 流程发布定义ID 为空则未发布
    @Null
    private String defId;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSetId() {
        return setId;
    }

    public void setSetId(String setId) {
        this.setId = setId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getBpmnContent() {
        return bpmnContent;
    }

    public void setBpmnContent(String bpmnContent) {
        this.bpmnContent = bpmnContent;
    }

    public String getSvgContent() {
        return svgContent;
    }

    public void setSvgContent(String svgContent) {
        this.svgContent = svgContent;
    }

    public String getDefId() {
        return defId;
    }

    public void setDefId(String defId) {
        this.defId = defId;
    }
}
